<template>
      <div class="block">
        <el-carousel trigger="click" class="block">
            <el-carousel-item v-for="item in imgs" :key="item" style="background-color: black;">
              <el-image
              style="height:100%;background-color: black;"
              :src="item.img"
              :fit="fill"></el-image>
            </el-carousel-item>
    </el-carousel>
      </div>
</template>

  <script>
    export default {
      components: {},
      props:{},
      data () {         
        return {
           imgs:[
             {
               img:require("../assets/img/yun_bear.png")
             },
             {
              img:require("../assets/img/yun_earth.png")
             },
             {
              img:require("../assets/img/yun_lawyer.png")
             },
             {
              img:require("../assets/img/yun_red.png")
             },
             {
              img:require("../assets/img/yun_yiren.png")
             }
           ]
        }
      },
      methods: {
       
      },
    }
  </script>
  <style scoped>
  .block{
    width:100%;
    height:100%;
    background-color: black;
  }
  .block .carousel{
    width:100%;
    height:100%;
  }
  .el-carousel__container{
    height:100%;
    width:100%;
  }
  </style>